var apiurl="http://localhost:8202/api/"
var imgurl="http://8.136.213.4:9000/movie/"
function getQueryVariable(variable)
{
       var query = window.location.search.substring(1);
       var vars = query.split("&");
       for (var i=0;i<vars.length;i++) {
               var pair = vars[i].split("=");
               if(pair[0] == variable){return pair[1];}
       }
       return(false);
}
			var userId = localStorage.getItem("userId")
			var nickName = localStorage.getItem("nickName");
			var avatar = localStorage.getItem("avatar");
		   if(userId!='undefined'){
				$('.dropdown-user-avatar img').attr('src',imgurl+avatar);
				//$('.admin img').attr('src',imgurl+avatar);
			    $('.opts_account img').attr('src',imgurl+avatar);
				$(".head_user span").eq(0).html(decodeURI(nickName));
			}
			
			// 	$.ajax({
			// 		url: apiurl + 'tVideo/playCount',
			// 		type: 'post',
			// 		data:{
			// 			'videoUrl':url
			// 		}
			// 	})